<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.List" %>
<%@ page import="javax.jdo.PersistenceManager" %>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%@ page import="com.beforesunrise.project.server.*" %>
<%@ page import="com.beforesunrise.project.server.plusservice.SearchPlusService" %>
<%@ page import="com.beforesunrise.project.server.plusservice.SearchPlusServiceFactory" %>

<%
	SearchPlusService sps = SearchPlusServiceFactory.GetSearchPlusService();
	String result = "No result";
	String keyword = request.getParameter("keyword");
	
	if(keyword != null && keyword.length() > 0) {
		result = sps.searchActivitiesJSON(keyword);
	}
	else {
		result = sps.searchActivitiesJSON("강남");
	}
	
%>

<html>
<head>
</head>
<body>
  <%=result %>
</body>
</html>